//
//  ZHUButton.h
//  CLCW_KX_JingJiaBao
//
//  Created by zhuguanyu on 2017/3/16.
//  Copyright © 2017年 clcw. All rights reserved.
//
#define SPColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]

#import <UIKit/UIKit.h>

typedef void (^CLCWActionBlock)(void);

@interface baseButton : UIButton

@property (nonatomic, copy) IBInspectable NSString *btnType;

@property (nonatomic, copy) NSDictionary *data;

@property (nonatomic) id model;

@property (nonatomic, copy) CLCWActionBlock actionBlock;

@property (nonatomic) NSInteger badgeValue;

@property (nonatomic, assign) BOOL isRedBall;
@property (nonatomic, strong) UILabel *badgeLab;

- (void)handleControlEvent:(UIControlEvents)event
                 withBlock:(CLCWActionBlock) action;

@end
